const Router = require('koa-router')
const router = new Router()
const koaBody = require('koa-body')
const serve = require('koa-static')


function getApp(__dirname, app) {
    app.use(serve(__dirname + '/static'))
    app.use(koaBody(
        {
            multipart: true,
            formidable: {
                maxFileSize: 1024 * 1024 * 2000
            }
        }
    ));
}

//导入每个人的模块
import { zxl } from "./zxl"
import { lgh } from "./lgh"
import { whh } from "./whh"
import { cby } from "./cby"
import { lmx } from "./lmx"
import { mzz } from "./mzz"


zxl(router)
lgh(router)
whh(router)
cby(router)
lmx(router)
mzz(router)





export {
    router,
    getApp
}